//
//  ShoppingTableViewCell.m
//  Xing
//
//  Created by macpro on 16/1/6.
//  Copyright © 2016年 徐番茄丶. All rights reserved.
//

#import "ShoppingTableViewCell.h"
#import "MyTools.h"
@implementation ShoppingTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self viewCreate];
    }
    return self;
}

-(void)viewCreate{
    //view1
    _title = [[UILabel alloc]initWithFrame:CGRectMake(15, 10, 200, 20)];
    _title.font = [UIFont systemFontOfSize:14];
    _title.textColor = [UIColor blackColor];
    [self addSubview:_title];
    
    _viewlab = [[UILabel alloc]initWithFrame:CGRectMake(70, 10, WIDTH-105, 20)];
    _viewlab.font = [UIFont systemFontOfSize:12];
    _viewlab.textColor = UIColorFromRGB(0x666666);
    [self addSubview:_viewlab];
    
    _songbut = [[UIButton alloc]initWithFrame:CGRectMake(WIDTH-40, 10, 30, 30)];
    [self addSubview:_songbut];
    
    _price = [[UILabel alloc]initWithFrame:CGRectMake(WIDTH-50, 10, 40, 20)];
    _price.font = [UIFont systemFontOfSize:12];
    _price.textAlignment = 2;
    _price.textColor = UIColorFromRGB(0x666666);
    [self addSubview:_price];
    
    _numer = [[UILabel alloc]initWithFrame:CGRectMake(WIDTH-150, 10, 40, 20)];
    _numer.font = [UIFont systemFontOfSize:12];
    _numer.textAlignment = 2;
    _numer.textColor = UIColorFromRGB(0x666666);
    [self addSubview:_numer];
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
